package com.zking.service;


import java.util.List;

import com.zking.model.Questions;
import com.zking.model.Users;
import com.zking.util.AppException;

public interface UserService {
	/**
	 * 注册
	 * */
	public int Register(Users user)  throws AppException;
	
	/**
	 * 验证邮箱
	 */
	public int checkEmail(String email) throws AppException;
	/*
	 * 验证用户登录
	 */
	public Users validateLogin(String Email,String uPwd) throws AppException;
	/*
	 * 判断用户是否登录
	 */
	public Users pdLogin(String email) throws AppException ;
	//通过用户ID查找用户的详细信息
	public Users selectUsersByuid(int uId) throws AppException;
	
	//修改用户的基本信息
	public int updateUserInfo(int uId,String uName,String uPhone)throws AppException;
	
	//修改用户的密码
	public int updatePwd(int uId,String uPwd)throws AppException;
	
	
}
